package com.yjt.fresh.api;

import android.app.Activity;

import com.wzgiceman.rxretrofitlibrary.retrofit_rx.Api.BaseApi;
import com.wzgiceman.rxretrofitlibrary.retrofit_rx.listener.HttpOnNextListener;
import com.yjt.fresh.httpservice.HttpPostService;

import retrofit2.Retrofit;
import rx.Observable;

/**
 *
 * 获取个人信息
 * @author mcc
 * @date 2018-06-28
 */

public class ApiGetUserInfo extends BaseApi {
    private String session_id;

    public ApiGetUserInfo(HttpOnNextListener listener, Activity rxAppCompatActivity, boolean showProgress, boolean cache, boolean cancel) {
        super(listener, rxAppCompatActivity, showProgress, cache, cancel);
    }

    public String getSession_id() {
        return session_id;
    }

    public void setSession_id(String session_id) {
        this.session_id = session_id;
    }



    @Override
    public Observable getObservable(Retrofit retrofit) {
        return retrofit.create(HttpPostService.class).getUserInfo(getSession_id());
    }
}
